package cn.topcodes.tcsf.wechat.service;

import cn.topcode.unicorn.wxsdk.menu.dto.CreateMenu;
import cn.topcodes.tcsf.admin.commons.generic.IGenericService;
import cn.topcodes.tcsf.wechat.domain.entity.WechatMenu;
import org.springframework.transaction.annotation.Transactional;

/**
 * 公众号菜单服务
 * @author Unicorn
 * Created by Unicorn on 2017/10/2.
 */
public interface WechatMenuService extends IGenericService<WechatMenu> {

    /**
     * 保存菜单数据
     * @param wechatMpId    微信公众号id
     * @param createMenu    菜单数据
     */
    void save(Long wechatMpId, CreateMenu createMenu);

    /**
     * 获取公众号菜单数据
     * @param wechatMpId    微信公众号id
     * @return      菜单数据
     */
    CreateMenu getMenu(Long wechatMpId);
}
